package wsepForum.test.acceptance.bridge;

/**
 * The interface for actions in our forum
 * @author Oren Ben-Haim
 *
 */
public interface IForumActions {

	/**
	 * Try to login to the forum's system with
	 * a specific username and password
	 * @param username the login's username
	 * @param password the login's password
	 * @return True, if login was successful
	 */
	public boolean actionTryToLoginWith(String username, String password);

	/**
	 * Try to create a section in the root of the forum with or without admin rights
	 * @param sectionName The new section's name
	 * @param isAdmin True, if is user admin
	 * @return True, if login was successful
	 */
	public boolean actionTryToCreateSection(String sectionName, boolean isAdmin);


	public boolean actionTryToCreateTopic(String topicName, String body, boolean isLoggedOn);

	/**
	 * Shutdown system
	 */
	public void closeBridge();

	public boolean changePassword(String username, String oldPass, String newPass);


	public boolean actionTryToDeleteMessage(String subject, boolean isAuthor, boolean isAdmin);

	public boolean actionTryToDeleteTopic(String subject, boolean isAuthor, boolean isAdmin);

}
